package com.brayan.webapp.controller.general.i18n;

import java.io.Serializable;
import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import com.brayan.webapp.model.general.i18n.Language;
import com.brayan.webapp.repository.general.i18n.LanguageRepository;

@Named
public class LanguageController implements Serializable {

	public LanguageController() {
	}
	
	@Inject
	private LanguageRepository languageRepo;

	private static final long serialVersionUID = 1L;

	private String localeCode;

	public String getLocaleCode() {
		return localeCode;
	}

	public void setLocaleCode(String localeCode) {
		this.localeCode = localeCode;
	}
	
	public List<Language> getAllLanguages(){
		return languageRepo.getLanguages();
	}
}